package aupdg;

import java.awt.*;
import javax.swing.*;

import net.miginfocom.swing.MigLayout;

public class Run {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		System.out.println("Hello world");
		
		JPanel panel = new JPanel(new MigLayout());
		
		JLabel firstNameLabel = new JLabel("First Name");
		JLabel firstNameTextField = new JLabel("First Name");
		JLabel lastNameLabel = new JLabel("First Name");
		JLabel lastNameTextField = new JLabel("First Name");
		JLabel addressLabel = new JLabel("First Name");
		JLabel addressTextField = new JLabel("First Name");

	    panel.add(firstNameLabel);
	    panel.add(firstNameTextField);
	    panel.add(lastNameLabel, "gap unrelated");
	    panel.add(lastNameTextField, "wrap");
	    panel.add(addressLabel);
	    panel.add(addressTextField,"span, grow");
	    		
		JFrame gui = new JFrame("Example");
		gui.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		gui.setContentPane(panel);
		
		JMenuBar greenMenuBar = new JMenuBar();
        greenMenuBar.setOpaque(true);
        greenMenuBar.setBackground(new Color(154, 165, 127));
        greenMenuBar.setPreferredSize(new Dimension(200, 20));
        
        gui.setJMenuBar(greenMenuBar);
        gui.pack();
        gui.setVisible(true);
	}
}